package cn.edu.xmu.wnw.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Group group;
     private String username;
     private String password;
     private Date createTime;
     private String nickName;
     private Date lastTime;
     private String email;
     private String qq;
     private String description;
     private Integer state;
     private Integer hit;
     private Set friendCategories = new HashSet(0);
     private Set moods = new HashSet(0);
     private Set communities = new HashSet(0);
     private Set categories = new HashSet(0);
     private Set friendCategories_1 = new HashSet(0);


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
    
    /** full constructor */
    public User(Group group, String username, String password, Date createTime, String nickName, Date lastTime, String email, String qq, String description, Integer state, Integer hit, Set friendCategories, Set moods, Set communities, Set categories, Set friendCategories_1) {
        this.group = group;
        this.username = username;
        this.password = password;
        this.createTime = createTime;
        this.nickName = nickName;
        this.lastTime = lastTime;
        this.email = email;
        this.qq = qq;
        this.description = description;
        this.state = state;
        this.hit = hit;
        this.friendCategories = friendCategories;
        this.moods = moods;
        this.communities = communities;
        this.categories = categories;
        this.friendCategories_1 = friendCategories_1;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Group getGroup() {
        return this.group;
    }
    
    public void setGroup(Group group) {
        this.group = group;
    }

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNickName() {
        return this.nickName;
    }
    
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getLastTime() {
        return this.lastTime;
    }
    
    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getHit() {
        return this.hit;
    }
    
    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public Set getFriendCategories() {
        return this.friendCategories;
    }
    
    public void setFriendCategories(Set friendCategories) {
        this.friendCategories = friendCategories;
    }

    public Set getMoods() {
        return this.moods;
    }
    
    public void setMoods(Set moods) {
        this.moods = moods;
    }

    public Set getCommunities() {
        return this.communities;
    }
    
    public void setCommunities(Set communities) {
        this.communities = communities;
    }

    public Set getCategories() {
        return this.categories;
    }
    
    public void setCategories(Set categories) {
        this.categories = categories;
    }

    public Set getFriendCategories_1() {
        return this.friendCategories_1;
    }
    
    public void setFriendCategories_1(Set friendCategories_1) {
        this.friendCategories_1 = friendCategories_1;
    }
   








}